<script>on mouseUpselect the clickLineput the clickLine into tempput the number of lines in bg field 2 into noOfLinesget word 2 of tempif (it < 0) or (it > noOfLines) then exit mouseUpput it into bg field 3send closeField to bg field 3end mouseUp</script>
</part>
<part>
<id>9</id>
<type>field</type>
<visible> <true /> </visible>
<dontWrap> <true /> </dontWrap>
<dontSearch> <false /> </dontSearch>
<sharedText> <false /> </sharedText>
<fixedLineHeight> <true /> </fixedLineHeight>
<autoTab> <true /> </autoTab>
<lockText> <false /> </lockText>
<rect>
<left>214</left>
<top>309</top>
<right>250</right>
<bottom>329</bottom>
</rect>
<style>shadow</style>
<autoSelect> <false /> </autoSelect>
<showLines> <false /> </showLines>
<wideMargins> <false /> </wideMargins>
<multipleLines> <false /> </multipleLines>
<reservedFamily> 0 </reservedFamily>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>12</textSize>
<textStyle>plain</textStyle>
<textHeight>16</textHeight>
<name>Menu choice</name>
<script>-- editableon closeFieldput the number of lines in bg field 2 into noOfLinesget bg field 3if it is empty thenif the short name of this card is not "Main Menu" thenpop cardelsenotifyUser "You're already at the main menu!"end ifelseput char 1 of it into tempif (charToNum(temp) = 46) thensend mouseUp to bg button "Prior Menu"else if (charToNum(temp) < 49) or (charToNum(it) > 57) thennotifyUser "Pick a number from 1 to " & noOfLines & " only, please!"send openCard to this cardelseif (it > noOfLines) or (it < 1) thennotifyUser "Pick a number from 1 to " & noOfLines & " only, please!"send openCard to this cardelseput word 1 of line it of bg field 4 & " " into goWhereput word 2 of line it of bg field 4 after goWhereif goWhere is "go to" then push cardput line it of bg field 4 into doMedo doMeend ifend ifend ifend closeField</script>
</part>
<part>
<id>10</id>
<type>field</type>
<visible> <true /> </visible>
<dontWrap> <true /> </dontWrap>
<dontSearch> <false /> </dontSearch>
<sharedText> <false /> </sharedText>
<fixedLineHeight> <true /> </fixedLineHeight>
<autoTab> <false /> </autoTab>
<lockText> <true /> </lockText>
<rect>
<left>199</left>
<top>29</top>
<right>512</right>
<bottom>295</bottom>
</rect>
<style>scrolling</style>
<autoSelect> <false /> </autoSelect>
<showLines> <false /> </showLines>
<wideMargins> <false /> </wideMargins>
<multipleLines> <false /> </multipleLines>
<reservedFamily> 0 </reservedFamily>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>left</textAlign>
<font>Monaco</font>
<textSize>9</textSize>
<textStyle>plain</textStyle>
<textHeight>12</textHeight>
<name></name>
<script>-- notThere</script>
</part>
<part>
<id>11</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>412</left>
<top>0</top>
<right>512</right>
<bottom>22</bottom>
</rect>
<style>roundrect</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <true /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Chicago</font>
<textSize>12</textSize>
<textStyle>plain</textStyle>
<name>Unlock Text</name>
<script>on mouseUp-- notThereif the lockText of bg field 1 is true thenset the name of me to "Lock Text"set the lockText of bg field 1 to falseset the lockText of bg field 2 to falseset the lockText of bg field 4 to falseelseset the name of me to "Unlock Text"set the lockText of bg field 1 to trueset the lockText of bg field 2 to trueset the lockText of bg field 4 to trueend ifend mouseUp</script>
</part>
<name>Menu Choices in Fields</name>
<script>on openCardglobal onLineif onLine then pass openCardelsetabKeyend ifend openCard</script>